package com.ruoyi.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.service.mapper.ServicePictureMapper;
import com.ruoyi.service.domain.ServicePicture;
import com.ruoyi.service.service.IServicePictureService;

/**
 * 图片信息表Service业务层处理
 * 
 * @author ZDL
 * @date 2024-11-12
 */
@Service
public class ServicePictureServiceImpl implements IServicePictureService 
{
    @Autowired
    private ServicePictureMapper servicePictureMapper;

    /**
     * 查询图片信息表
     * 
     * @param pictureId 图片信息表主键
     * @return 图片信息表
     */
    @Override
    public ServicePicture selectServicePictureByPictureId(Long pictureId)
    {
        return servicePictureMapper.selectServicePictureByPictureId(pictureId);
    }

    /**
     * 查询图片信息表列表
     * 
     * @param servicePicture 图片信息表
     * @return 图片信息表
     */
    @Override
    public List<ServicePicture> selectServicePictureList(ServicePicture servicePicture)
    {
        return servicePictureMapper.selectServicePictureList(servicePicture);
    }

    /**
     * 新增图片信息表
     * 
     * @param servicePicture 图片信息表
     * @return 结果
     */
    @Override
    public int insertServicePicture(ServicePicture servicePicture)
    {
        return servicePictureMapper.insertServicePicture(servicePicture);
    }

    /**
     * 修改图片信息表
     * 
     * @param servicePicture 图片信息表
     * @return 结果
     */
    @Override
    public int updateServicePicture(ServicePicture servicePicture)
    {
        return servicePictureMapper.updateServicePicture(servicePicture);
    }

    /**
     * 批量删除图片信息表
     * 
     * @param pictureIds 需要删除的图片信息表主键
     * @return 结果
     */
    @Override
    public int deleteServicePictureByPictureIds(Long[] pictureIds)
    {
        return servicePictureMapper.deleteServicePictureByPictureIds(pictureIds);
    }

    /**
     * 删除图片信息表信息
     * 
     * @param pictureId 图片信息表主键
     * @return 结果
     */
    @Override
    public int deleteServicePictureByPictureId(Long pictureId)
    {
        return servicePictureMapper.deleteServicePictureByPictureId(pictureId);
    }
}
